package com.hospital.pet.love.lovepethospital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName drug
 */
@TableName(value ="drug")
@Data
public class Drug implements Serializable {
    /**
     * 药品id
     */
    @TableId(value = "drug_id", type = IdType.AUTO)
    private Integer drugId;

    /**
     * 药品名
     */
    @TableField(value = "drug_name")
    private String drugName;

    /**
     * 药品数量
     */
    @TableField(value = "drug_quantity")
    private Integer drugQuantity;

    /**
     * 批号
     */
    @TableField(value = "batch_number")
    private String batchNumber;

    /**
     * 有效期
     */
    @TableField(value = "expiration_date")
    private LocalDateTime expirationDate;

    /**
     * 规格
     */
    @TableField(value = "specification")
    private String specification;

    /**
     * 生产厂家
     */
    @TableField(value = "manufacturer")
    private String manufacturer;

    /**
     * 药品单价
     */
    @TableField(value = "drug_price")
    private BigDecimal drugPrice;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}